#pragma once
#include <iostream>
using namespace std;

class Node {
public:
	Node()
	{
		data  = 0;
		pNext = NULL;
		pPre  = NULL;
	}

	void setData(int data)	  { this->data = data; }
	int  getData()			  { return data; }

	void  setNext(Node* pNext){ this->pNext = pNext; }
	Node* getNext()			  { return pNext; }

	void  setPre(Node* pPre)  { this->pPre = pPre; }
	Node* getPre()			  { return pPre; }

	~Node()					  { }

private:
	int   data;
	Node* pNext;
	Node* pPre;
};